package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.Supplier;
import com.ktjiaoyu.entity.SysRole;
import com.ktjiaoyu.entity.SysUser;
import com.ktjiaoyu.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {
    public List<Supplier> getSupplierListByName(Supplier  supplier);
    public int insert(List<Supplier> supplierList);
    public int delete(Long id);

    /**
     * 分页查询
     */
    public Page<Supplier> findPage(@Param("offset") Integer offset,
                                  @Param("pageSize") Integer pageSize);
    /**
     * 保存或者修改用户信息
     */
    public boolean saveOrUpdate(Supplier supplier)throws  Exception;
    /**
     * 获取用户信息
     */
    public Supplier findBuId(Long id) throws  Exception;
}
